import { copy } from '@web-utils/core'
import { Message } from 'element-ui'

export function copyData(data) {
  copy(
    data,
    () => Message.success({ duration: 1000, message: '复制成功！', type: 'success' }),
    () => Message.error({ duration: 1000, message: '复制失败！', type: 'error' })
  )
}
